It has happened to multiple times. Collect buildings, log out, log in and half my buildings didn't collect or we're raided.
What I've started doing is when I have to collect or do something I need to stick.. When it gets done open faction tab and click chat. Or do something else that forces a server response.