Added else statement on pending connection