Use perror instead of custom error handler