module unload handle should free/unref everything