show error message gracefully if connection failed