Clean up modules.