Added try catch

because reasons