try to wait after login to keep the session.
try to fix the defect about main thread runtime exception.I don't know
what runtime exception was thrown.So just add log to record the
exception.