Handle non-StandardError exceptions in our interruptable sleep method