Add LockError to custom exception handler