Broken pipe fixed + concurrentmodificationexception