Stop throws NPE if exception occurs in construction

For instance, if an invalid configuration is provided:

    {"port":"foobar"}

An exception will be thrown, prompting immediate undeployment. `mongo` will be null, so an NullPointerException will be thrown.