fix login msg and terminated at Ctrl+C