Fix memory leak caused by passing activity context to new Thread