Fix closing issue on iCubSim
Minor tab fix and clenaing