Use montiorenter/exit only with threads.