adding timer,signal catch, and improve status on command_log