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

Closes #2173.
See also #2174 for the 2.2 branch