restore try catch block