Log the error
Fix spelling typo
Add API for contextPath
Fixes #1355