Do not print to pipe or close command if nothing was executed