God, what a terribly insensitive comment. Leaving the workforce to care for family is not "check[ing] out for 24 months."
Leaving the workforce to take care of family and not doing anything to keep yourself marketable is "checking out" when it comes to your career. You are going to have to be proactive in making sure that you are doing things each week that will put you in a good place to return to the workforce IF that is what you eventually want to do.