SONARIDE-389 Improve behavior when cancelling local analysis on OSX