Fix for problem where a bad database connection was left dangling, and added process-limiting configuration to passenger to stop us running out of memory