fixed a severe bug, close possible opened tunnel when a user is logging in