passing auth credentials to instance-closing routine