fix javax.servlet version reference problem
put better instrumentation in error handling