Add warning handlers to exit monitor.