Error handling POSIX-style