Use custom write function to discard response which would otherwise be printed on stdout