IOManager connect and accept failure handling. Fixes #3035

 * Cherry-picked from release-2.1.
 * Small changes: channel.socket -> sock
Merge pull request #1127 from akka/wip-3035-io-exceptions-rich

IOManager connect and accept failure handling. Fixes #3035