Does Vapor close resources opened with dlopen automatically?

Brilliant! ORing in RTLD_NODELETE during dlopen does stop the crash from happening on Linux. I hope that I am not too optimistic in supposing that, if the Vapor process shuts down cleanly and exits, then any memory allocated by that process will be freed up.