[execution][local] Improve handling of message handler shutdown

Relates to beat.backend.python#30
4 jobs for improve_message_handler_shutdown in 16 minutes and 5 seconds (queued for 1 second)