Does my open position close when I log out of the terminal?
Updated
No, any open positions will continue to remain so unless you yourself close them, the trade reaches a closing specification (if you put one) such as Stop-Loss, Turn Profit, etc. or else if your account reaches stop-out.