Stop tree on form event; fix // in path