Morristown’s 170-year-old church will close in August