added code to catch exception that keeps getting raised in rails 3.1 applications with failing transitions and trigger rollback