Added function for testing missing close