in reply to Catching a timeout
Alternatively, you could wrap the whole thing in an eval block, and then test $@.
Michael