Handled HTTP connection error properly