Write termination message to the correct fd (suggested by evan hanson).
No need to use ##sys#null-pointer? here, just check the ptr returned by "extract_argument_ptr" for being #f.