Use stop instead of signalCondition
Don't add .GlobalEnv ns in pre_handler
Pass 'tr' to handlers instead of the 'transport' argument
Move middleware into middleware.R
Fix broken handler