Fix segfault on exit for OSX
Merge pull request #754 from ros-visualization/hydro-devel_backport_753

[hydro] Fix segfault on exit for OSX