refactor close status validation