Clean up the I/O context handler.