Same as above, the rest should be in a try/except for lock release.