Fixing dropped connection throwing an Eof