Clean up required modules in server process