handlers/log: log event in case of panic
urest: log/return errors instead of panicing