lib/process: Cleanup stdout callback