add support for reset if modal is closed in the middle of an install