Refactor: handle server process in default stdout