pty=False on restart commands, fix random bug