get error from quit command