Add error handeling for server in ipl