Minor error handling for SCDB code.