NioUtils: log exception on writing to and closing WritableByteChannel at a more appropriate level.