Catch socket errors in the status server.
Work in progress