cancel task when timeout