Better error reporting when Program object creation fails.