A watchdog library for Erlang processes to prevent them from hanging and that can gather diagnostics before killing them