DieWithMessageError

Replacing with perror(), close(), exit()