Prevented lock being left locked.
Fixed obvious error in "zombie process" commit.