For many, sex is a pleasurable and relaxing way to let loose before settling down to sleep.