Auto Disconnect

Write script to automatically disconnect you based on some conditions. Use player.disconnect(...); methods.