termiante thread after processing request