will wait to terminate if status is still running