make sure errors in layer teardown don't prevent tests from getting reported, fixes #12