abort load when an error occurs