Fixed a scoping bug when binding the ioHandlers.
Tagged as v0.3.1 and deprecated previous versions.