Surround operation with try, catch