Fix error handling in the include command