terminate the import when it exceeds the maximum