Fixed #38, will wallet closed or locked, it will be automaticlly brought to login page