Fixes #170 Possibility to stop the file scanner