Added a stop_and_wait command that waits Timeout milleseconds for the process to exit.