Singleton improvement
fixed a threding condition on ctrl-c exit
Online flag is now removed from table entry after logoff again