Ensure we handle signals correctly during the async calls.