Hi Gytis,
I agree that
you should have all code which may be interrupted within try ... catch blocks.
You should then start thinking about what could interrupt your code - is there any code that you have written that may interrupt your method?
If you have not written any such code, then what state is your server in if it gets an interruption? Can you even proceed with transactions now, knowing that some code would have had to be introduced to your server which is creating the interruption? Should your server continue operating in an invalid state? How should you warn the clients about your current state?
Note: I am deliberately only asking questions at this time, rather than providing
my solution. You may find that answering these questions may help you to determine what
you need to do. And it may help you to formalise a design decision for your design decisions document.
Regards, Andrew