Scans: Fixed share and schedule modal leaks

[Closes #53]