Fix crashes in ML and networking dialog
This fixes a swift runtime exception in the networking dialog and moves deleting the .Trash to a background queue to prevent cancellations through the iOS runtime on launch when the app is blocking the main thread for too long.
This fixes #1315 (closed).