Add hsql shutdown to assembly clean
UP-3769 Only do sub-select if channelIds exist