Fixed SOC source bug
added check in check_new_attach() for removal of recently attached source/load