قبل از con.open دستور ms.close() بزنید