close tab in browser after receive auth_code