use finalhandler for final response handling
fix behavior when handling request without routes

fixes #2159