bin: fix handling of restart to print output