Good luck getting everthing in order.
The best thing to do in these situations is to find a good friend or family member who can take them in, and possibly give you the opportunity to reclaim them once again in the future once things settle, so I think you made the right choice.