Log when context driver fails to bind API.

Some generic cleanups to context init as well.
Merge pull request #1286 from CautiousAlbino/master

Log when context driver fails to bind API.