update service: add time for each msg and add "close" cmd