Don't crash on cancel in file dialog.
Don't crash if sending without selecting a file.
Exit gracefully