Remove dead code
Syncronize session destruction
Unused variable
UndertowInputStream fixes