Title. When the thread is closed for some reason the database isn't getting updated - potentially solved with #1