Time capsule with try / catch block NOT working - KS v 7.9.1

Hi,
I’ve come across this issue, when trying to use ‘time capsule’, I get a message indicating that is not possible. My code is in a TRY / CATCH block, therefore the time capsule is not shown at the end of log viewer,
is this the reason for this to happen?
if so, is there any workaround to be able to use ‘time capsule’?