});
TYRUS_CONNECTION.set(grizzlyConnection, connection);
TASK_PROCESSOR.set(grizzlyConnection, new TaskProcessor());
grizzlyConnection.addCloseListener(new CloseListener() {
@Override
public void onClosed(Closeable closeable, ICloseType type) throws IOException {
// close detected on connection
connection.close(CloseReasons.GOING_AWAY.getCloseReason());
// might not be necessary, connection is going to be recycled/freed anyway