Correctly removing the last thing

This is to make it work on windows.
Merge pull request #97 from caiusb/recorder-fix

Correctly removing the last thing