catch server exception