Fix/3.maintenance/adding logging to client shutdown