Check for EOF packet and return