Added error listener for server