             @submitting = false
             return false # to block disappearance
 
-          beforeCancel: -> !@submitting
+          beforeCancel: ->
+            if !@submitting
+              $(document).trigger('modal:close')
+              return true
         }
       else
         { 

            JSON.parse(responseText)['success_path']
          else
            xhr.getResponseHeader('X-Success-Path')

          if successPath
            window.location.href = successPath

              $(this.el).find(".submit").hide()
              $(this.el).find(".close").addClass('alone')

          beforeCancel: ->
            if !@submitting
              $(document).trigger('modal:close')
              return true
        }

      Modal = Backbone.Modal.extend(modalOptions)
