Fix Jetty threads getting stuck

Fix Jetty threads getting stuck on exceptions, 
As per the change in jetty 9.0.7 https://bugs.eclipse.org/bugs/show_bug.cgi?id=424107 
chunked response may not be finalized If an exception occurs after initial chunk has been sent,