Custom games inactivity kick?

I was playing Riptide solo in custom games to get a feel for the map, and all of sudden the game abruptly ends without me doing so. I lag around for half a second, screen goes black and the game just returns me to the menu. Time limit was set to infinity.