linux screen close code example
Example 1: screen kill all
killall screen
Example 2: kill screen
$ screen -X -S [session # you want to kill] quit
Example 3: kill screen session from outside
screen -X -S [session # you want to kill] kill
killall screen
$ screen -X -S [session # you want to kill] quit
screen -X -S [session # you want to kill] kill