Taking these precautions might help you sleep better at night.