WriteFuture future = null;
try {
synchronized (handler) {
if (isSslStarted(session)) {
future = initiateClosure(nextFilter, session);
future.addListener(new IoFutureListener<IoFuture>() {
public void operationComplete(IoFuture future) {
nextFilter.filterClose(session);
}
});
}