Finished up the shutdown code for the event_server