Fix segfault on exit.

Used to delete world even if there wasn't one