@Override protected void doStop() throws Exception { super.doStop(); if (server != null) { server.close(); } }