safer timeout