(fix) improved how the program launches and waits on the server thread