Use the logger instead of stupidly printing out errors.