Add stop method for logger