FFI: Problem with Signal Handler Interruptions