It is possible to be disconnected remotely which will cause the screen session to remain open.

Ensure everything is cleaned up in "script/client" by checking for a value in "$STY" and terminating the screen session.