Remove exit()s from error conditions.