void (UUID messageId, RequestFuture<T> requestFuture, @Nullable T responseHandler) { try { myMessageHandler.removeFuture(messageId); if (responseHandler != null) { responseHandler.sessionTerminated(); } } finally { requestFuture.setDone(); } }