r389: return non-zero upon errors