if (httpChannel != null) {
httpChannel.closeFuture().sync();
}
if (httpsChannel != null) {
httpsChannel.closeFuture().sync();
}
} catch (InterruptedException ie) {
logger.error("MockServer receive InterruptedException", ie);
} finally {
bossGroup.shutdownGracefully();