Out of memory check in import_command_finalize().