get return value from quit command