Release the rat or mouse several miles away from your home, preferably in a field, away from other homes, so they can't find their way back. Also, you can ask a veterinarian to euthanize the rodent humanely.