Fix a bug in error handlers which failed to invalidate the sftp connection when an unexpected ECONNRESET event was received. These events can occur when the remote server closes the connection unexpectedly. Failing to invalidate the internal sftp object could result in either delayed timeout errors or a hanging promise which doesn't get fulfilled or rejected when the client tries to use the connection again after the event has triggered.