Oliver Peabody, Justice of the peace