catch errors when checking shutdown status