Setting IO handler properly.

--HG--
branch : websplat2