Added stack and code dump to exception manager.