Finish exit area detection code