Add maxsize option to ThreadedWrapperHandler