how to end screen session code example
Example 1: screen kill session
$ screen -X -S [session # you want to kill] quit
Example 2: kill screen session from outside
screen -X -S [session # you want to kill] kill
$ screen -X -S [session # you want to kill] quit
screen -X -S [session # you want to kill] kill