Finished adding try-finally blocks around rest of global jamLock code.