Call stopListening on mock webservers before calling loseConnection. (@jerith)