Print out error to console and return nil.