Revert "ticket #28 - write JSON before crash"

This reverts commit b445d217fb3ef055574112babb2d6de7250c7059.