fix: uncought exception on discconect