Add rack middleware for better process monitoring.