exception handling for the 'end of file reached'-error, probably raised by twitter