Added handles for the success of the save dialog

When a user cancels or exits a save dialog the crypto call will not be
made, and the UI thread will be back to a standby state, fixes #2