Add error handling mechanism
Refactor error handling and add base app route