POISON_PILL is causing writing to closed client due to logic in code.
This module contains articles about core Java non-blocking input and output (IO)