Cleaning up module application.