Exec context debug

I have some new stuff in here, but I've mostly added because there are a lot of extra logging statements around the ExecutionContext operations to try helping diagnose the problem.