Keep main command thread alive with simple waits