latest update added out on failure
fixed tty issue after execution fails