Avoid non-halting loop when we do not get an END command