Close the connection on auth failure