Ensuring safety in confined spaces