[FIX] web: fix multiple modal closing (e.g. set defaults)

move call trigger('closing') after the modal('hide') call to prevent element being destroyed before we could do that call leaving a backdrop visible