Use context for logging with session id
Fix process dying

Copy the data correctly
and close the body later