Close invite user modal immediately after submit.

Closes #3672, Closes #3673, Closes #3680
* Close and reset modal immediately after submit instead
  of waiting until after processing has finished.