Removed all old files
Started to fix thread exiting but may not work on rlogin yet