}
catch (RejectedExecutionException e)
{
logger.warn("Execution was rejected by pool. Try to increase the pool size.");
// release resources like closing the socket if execution was rejected due to the pool size
connectionHandler.release();
}
}
logger.info("AgiServer shut down.");
}