Printing error when exiting

Useless print before exit