The last shutdown wasn't due to error but because of my hosting provider.
Basicly they told me the forum is overloading their servers and I have to do something to fix that, and they locked access to forum. Turned out counting replies was really heavy process so I deleted that for now, everything seems to be fine.
I'll write new system that counts replies and is more lightweight but unfortunely all old topics won't have reply count anymore.