check if connection to remote server fails