OFConnectionManager: do not increment error counter if connection closed

Pushes increment down to where we first detect the error.