make Page an event emitter
handle error events on requests to send error responses instead of crashing