add a call to stop on timeout