Print more useful stacktrace

In order to help debugging this error (which keeps occuring for people when using Sone) a more useful stacktrace is printed.