i would fill the cracks with some wood putty or the foam in a can where you can spray it in the cracks.

you could also put up ply wood or something solid and seal the edges.