Fix indentation
Add trap in CompressAndCheck to prevent dead lockfile