Make sure status() returns a message also on bad connection

Closes #2173.
Merge pull request #2177 from strk/2.3.x-handle-bad-connection

Make sure status() returns a message also on bad connection