Remove unused closeCons function