Implement logout and quit methods. Include logout in reload method.