Fix resource leaks for redis/sentinel process monitors.