catch service errors