Cleanup MainController