Clean up Main Controller.