Skip autoloading when there are errors.

This fix should be generalized such that upon autoloading we should be able to
check whether cling issued an error and abort the whole autoloading.