//Stop signal to the boss thread
this.bossInstance.stop();
//Send a dummy request to actually stop the thread.
AFUNIXSocket sock = AFUNIXSocket.newInstance();
try {
sock.connect(new AFUNIXSocketAddress(this.socketFile));
} catch (AFUNIXSocketException e) {
logger.warn("Failed to connect to Socket while sending a stop request.");
}
//Close the socket
channel.socket.close();