I don't like the ending.
Hint 1 of 2:
You should have found a way to spare the genie.
Hint 2 of 2:
See an earlier question about stopping the genie.