Close the drawers when a modal dialog appears