hmm, you silently ignore the timeout case. is it that hard c/p the code from resume? :)