sleep: handle infinity