Make log parsing more robust

Closing lines may have multiple ) in one line, but they definitely consist of only ). Nothing else.