Tidy up and remove go routines for event processing.