Treating POSIX signals as exceptions?