Fix output parsing; sleep before checking for aliveness.