Log ex.stack instead of ex for better debug output on supporting platforms, fixes #27