fix mininode shutdown issue