scrolled window: do not crash application with signals when closing

We are listening to signals from scrolled window. It is necessary
to disconnect early while closing the application.
See 725285