How do you keep a mussel closed until cooking?

For transportation, mussels are generally kept closed with a rubber band, but before cooking they should keep themselves closed. If they open up on their own, it means they are either sick or dead and should not be cooked or eaten. They have to open up on their own during the cooking process.