Remove unused function.
Remove another empty function.
Move printBacktrace into a better place.
Add backtrace printing for non-interactive mode.