1. Minor bugfix.
2. Generate backtrace upon std exception