fix error when no FWs in database, due to fact that m.shutdown() was called before making sure the pinging process was completed