Add timeout method to io_handler interface