Add more detail in createContext error message. Minor cleanup.
Fix bug in eventWaitList validation