introduce new function thor_exit and use that instead of thor_cleanup as our module_exit function. also remove the __exit attribute from thor_cleanup to avoid a section missmatch