Closing connection after mg_send_digest_auth()