Added try-finally blocks to Server jamLock code.