[#943] Fix CanceledKeyException which can happen on frequently deregiste...

...r/register while using the NIO Transport