cleanup status handling and stop listen server immediately after closing client connection if process is no longer running