kill screen session inside session code example
Example 1: screen kill session
$ screen -X -S [session # you want to kill] quit
Example 2: kill screen sessions
screen -ls
screen -XS [screen sessionid] quit
#eg: screen -XS 20411 quit
$ screen -X -S [session # you want to kill] quit
screen -ls
screen -XS [screen sessionid] quit
#eg: screen -XS 20411 quit