Added a printstacktrace when we get a ClosedSelectorException
(DIRMINA-978)
Replaced the printStacktrace by a call to exceptionCaught()