...G...... [ZBXNEXT-2320] print stack trace on unhandled exception in windows
..F....... [ZBX-8245] refactored as requested