Unify exception handling
log exception
With @Service annotations, handler may be concurrently modified
Use the javascript library
Fixes #1136