Setting a timeout on finish.