server self.onStop was never being called