Close datetimepicker when closing modal popup