Depending on your state it might not be legal to release the raccoon. Some states require on site release or to have the animal euthanized on site. If you do decide to relocate the animals take them at least five to ten miles away otherwise they are likely to track their way back and cause the same problems. Try not to keep them for to long in cages or other types of traps as it is very stressful for the animals. Be careful when releasing them as well, they are not likely to attack as their primary focus will be to get away but do not provoke them. They will attack in self defense if threatened. You may also want to consider some of the tips suggested in this question: Keeping Raccoons out of the garden