Added better support for aborted file sharing.