Added a Signal which is used to do something before the session is close...

...d.

Added a Signal to notice that the session was just opened.