release the connection for the https case;