I don't think sex stopped the loop. I think its just the author showing them delving into their insanity with degenerate sex and drugs, so much so they lost their memories (as shown by the burning film strips). Perhaps the true solution was forgetting each other? Who knows, it's a rushed ending...