Replace try-catch-finally callback blocks in the filesystem with try-finally blocks when possible.