Modules are cleaned up before stopping plugins

Description

when halting the server a NPE may happen when a module tries to use a module from the XMPPServer. The problem is that modules are being cleaned up before stopping the plugins.

Environment

None
Fixed

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak