Added condition test of door close on order delete