Added a passed value option to closeThisDialog()

Allows for even more minimal use cases where multiple button options might be available (not just the confirm/cancel scenario). Easy to pass some indication of how the dialog was closed.