[#1503]Fix a bug which incorrectly canceled keys for DatagramPackets when the epoll workaround was used
intermittent: local channel sometimes sends messages after close
SPDY: ensure channel close happens after outbound message is written
Merge pull request #1745 from jpinner/fix_spdy_close_3

SPDY: ensure channel close happens after outbound message is written