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

Closes #2173.
Merge pull request #2174 from strk/2.2.x-handle-bad-connection

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