Add timeout in parser_open