Cleanup applicationcontroller