from UX perspective the message - "The server is not responding" is old fashion, we should replace it by ZK - standard error message (like when you can't delete a record because of FK.)
I have attached two screenshots
1. actual implementation
2. new zk approach
edit: we can add client side timer/restart and display: trying to connect in 10,9,8,7.etc then restart.