Add connection checking and ignore command