Added HTTPException for Port.dispatch, to communicate bad reply codes up the stack, and also fixed debug logging for the same.