Thanks JMC that seems to work and show me a message box.
Only problem still is that it still highlights the line showing up an error:
Failed to connect to server2.
What can i do about this?

Thanks,
Rob