Yeah, I only used exit(1) because the program was crashing before adding this anyway. This was only intended to avoid silent crashing, since I didn't really know what was the best way to handle the error. Should have added a @TODO, though.

Makes sense to wait until you are done with the error handling stuff.