Reset the "must close" flag when we close the backend connection
before a retry.

Fixes #1494

Testcase by:	scoof