I see this rather often immediately after rollover. I'm pretty sure what's happening is that mafia is timing out because it's not getting a response from the server, even though it sent the request, and the request went through, the server is just bogged down with requests right after rollover.
Usually what I do to fix it is just wait until like 5 or so minutes after rollover finishes to log in (if the number of players logged in is over 500 or so, that's a good cue).
So then, mafia doesn't realize that it's right after rollover and is just taking more time than usual, so it does what it would do if it were trying to hit a server at any other time and the server were not responding, and switches servers.
I would suggest that in the code, it should try to detect if rollover just ended (maybe if players logged in is less than 500, or check time-of-day?) and give it more slack than usual. I think? mafia waits 30 seconds before switching. If it could be made to wait like.. say.. 2 minutes, right after rollover, that might be better.