clean Timeout function