fixed dsee duplication issue and added better cleanup for inactive masternodes