fixes #43: only print stacktrace if debugplugins is enabled

see #43