Issue/18429 catch exceptions when detecting selinux status