Added fews line of code for killing IM