utilities method for creating coap messages
request, response filter, produce IoFuture for waiting/listening the async reception of a response to a request
clear buffer before reading NIO socket
avoid chain of exception if close fail
added wrap methods