Always gracefully exit after running quit events