add resque term exception handling