Automatically means... The Client need to check on a regular interval whether the server up or not..
Is there a possible solution for that..
Because this is a thick client application, only when it save the data or communicate to server it will get to know the status of server. Otherwise you can continue working on locally means client side