store: call callback on socket error.