testing errors, closed connections