Add deinit for removing submodules