exit_gracefully should receive an event