fix #286

the process exit and the channel info can't flush to console
support profile & statistics in another port