Fixed lock.kill() call.