Properly remove modal from DOM