NPE fixed
Updated lib.
Don't close tab on remote terminal logout.