Protect against crashes by verifying that all resources created