Fixes a bug with fs unmounting at exit