updated logging messsage on exit