Fix for starting/stopping of the server. 

- Fixed: server not stopping (due to clients not disconnecting)
- Fixed: server not starting (due to `this.server` object being deconstructed)

@tkurki please review and merge if you agree