How to detect gstreamer RTSP streaming stops?

when rtsp streaming is in progress, how to detect RTSP streaming stops when camera is turned off or rtsp server shuts down? I can not get any bus error or eos messages. Gstreamer playbin is applied for RTSP streaming on client side.