You need to call your broker and tell them that you have a worthless stock that you need to write-off. They'll have a form for that.
You're one of the lucky ones if you only have 40k shares. I had many more than that and I know that is a "drop in the bucket" compared to some of the others here.