Loop the tests so we check for destroying the caProvider. Move the shutdown call inside the try/catch.