TYRUS-325: Server do not close session properly if non-instantiable endpoint class is provided