Added try/catch block

Forgot about that.