Destroy overlay layer when exit method is called.