Add more error logging for date parsing and make the closure checking more robust
Add more error logging for date parsing and make
the closure checking more robust

bmedx/modulestore,bmedx/modulestore,bmedx/modulestore