Currently everytime the filesystem is mounted a shutdown hook for the JVM is installed as a last ditch attempt to unmount the filesystem if it was not properly unmounted with a regular unmount()-call.
After some considerations i will close this issue.
It is the responsibillity of this library to clean every mount it has made, thus the shutdown hook must be used whenever possible.
Commit: 93cb766
Currently everytime the filesystem is mounted a shutdown hook for the JVM is installed as a last ditch attempt to unmount the filesystem if it was not properly unmounted with a regular unmount()-call.
https://github.com/dokan-dev/dokan-java/blob/93cb7664e260878ef2d56971d5f172cae7b8b8d5/src/main/java/dev/dokan/dokan_java/AbstractDokanyFileSystem.java#L248-L254
This may be unwanted and thus should be optional.