EOF is expected when connection is closed