BZ-1051769: before dispose, it closes the file system. and when all filesystems are closed it stops daemons.