Replace WSGIServerException by socket.error for Django > 1.5