Wrap everyting in try catch