sigint handling for sync and async executors.