i dont see anything wrong with either -- the rule says a player cannot leave the confines (i am not sure if it specifies unantended or not) -- but if the coach left he must have had a reason. hopefully there is an assistant there to take over responsibility for the team or the captain in his absence.
just make sure the ipod comes out before the game starts