Fixes issue #9

Hides modal prior to removal