Don't have Telegram yet? Try it now!
http://blog.amit-agarwal.co.in/2011/05/14/terminating-ssh-session-starting-background-process/
Terminating a SSH session after starting background process