FFI, signals and exceptions