Clean up module and event handler classes.