I always liked him in Barney Miller, however, when they decided to spin off his character into his own show, “Fish”, it was an absolutely terrible concept. It’s no surprise that it didn’t last very long.
Barney Miller never had an ending episode. The creator just quit because he didn’t want to run out of creative scenarios and dilute it’s history.