Rack API needs finalise to return correct structure

See http://rack.rubyforge.org/doc/classes/Rack/Response.html

(I hit problems with Nil pointers in Rack without this fix)