history: add exn handler and use milliseconds for timestamp