Disable interrupts in deleteFile

I believe this closes #15 on GitHub.