testing some socket exception handling