Try-except definitions to code. Login win now immediately close even asterisk is not connected