Cleaning up event firing and logging.