Kill Attached Screen in Linux
screen -X -S SCREENID kill
alternatively, you can use the following command
screen -S SCREENNAME -p 0 -X quit
You can view the list of the screen sessions by executing screen -ls
To block a node
srun --partition=compute --nodes=1 --ntasks-per-node=40 --pty bash.sh