Fix Bug that prevents a proper shutdown

Sometimes Jersey throws an exception during the unregistering of the ServletContainer servlet. In previous version this was an IllegalArgumentException. Now it's a IllegalStateException. This fix improves the shutdown exception handling.