If you get stuck on the infinite loop of actively trying to get to sleep, which does not work, try what I do: grab a book, forget about getting to sleep and assume you'll be reading it until morning. Usually I doze off in a couple of chapters. It helps to use an e-reader with low backlight.