A raccoon is like a bear, once it discovers food in a trash bin it's almost impossible to stop. You may prevent it from getting into your trash bin with bungy straps or the likes, but the coon will surely find your neighbors. It may be likely some of your neighbors are feeding these creatures either intentionally or unintentionally (dog/cat food). Raccoon are easy to trap. With a live trap, the coon can be relocated -- if not by yourself, then usually the city will send its animal control officer to pick it up once trapped. If using the "coon cuff" or dog proof trap, one does not have to dispatch it with a firearm or airgun. I will not get into the details here, but there are a number of ways to dispatch one in a trap. Then of course you have to dispose of the carcass. Keep in mind these dog proof traps, while relatively specific to raccoons, they will sometimes catch non-target animals, including pets. Bait selection is probably the best way to prevent non-target catches. Corn or marshmallow is probably your best bet. However, aside from securing your trash can lid, I would think that a live trap would be the best solution assuming your city official will pickup and relocate. That is how its most often done in my neighborhood. Simply set the trap and call the city once a catch is made.