Rewrite error handling and deinitialization in dispatcher

...acounting for:
 * EWOULDBLOCK
 * error reporting
 * new connection shutdown method
Merge pull request #644 from neithernut/add-connector-close_on_eof_or_error

Rewrite error handling and deinitialization in dispatcher