Close session in remote control script.