Handle exception on ins.close()