added con.close() for lsd_analyzer