use waitout and add a stop timeout