John P. Hale, Justice of the peace