wrap error response handling process as a thread class; remove
unnecessary flags