Bash closes Shell when terminated