Handle the don't keep activities option when using transfer data feature
This is a rather ugly workaround that allows us to pick up from lost state when the activity gets killed, but still allows the activity to get killed while using the system file picker.
Closes #2099 (closed)