Fix logging

There was a problem in the rescuing from exception (due to changed way of accessing to the logger), that might cause breaking Dynfow executor, possibly leading to deadlocks when waiting for the plan to finish (for example when exiting a web server in development mode)