THREADS ARE SUPPOSED TO RUN A CALLBACK WHEN BEING DELETED