refactored sending port 0 on exit logic to not change anything in zbeacon
fixed wrong variable for ping time
added a zre msg dump helper