Clean up server interface. Print grep results to stdout.