perform cleanup even when test fails
handle corner case where the client is forced to exit due to a security change