I am an idiot. rmdir is called alright, I just forgot to edit copy-pasted log message.