remove exception on dispose

Removed exception thrown when disposing a module that is already disposed.