Catch exceptions when detecting SELinux status