Unfortunately I am trying to modify its usage but am not doing a very good apparently as I need to keep the session variable in scope as joost points out.
The nohup (from post http://www.perlmonks.org/?node_id=378036) application is responsible for disconnecting your X window/application from the parent tty. Allowing you to end your telnet and continue in the X application.