The "connection reset by peer" quit could be unrelated to your first problem.