Added handler for failure to connect to master server.