Notification when server is not running in vaadin

I am having a simple vaadin 7 application with both server and client side components. The client side component is making rpc call to server side component through connector. Now, if I want to track whether the server is alive or not when the call to the server is made, how should that be implemented? I need the notification in the client and after capturing it, some code needs to be executed in client (connector).