Allow message send to finish before shutting down the executor