Added quit events.