Fixed some async errors on iOS5
Added more debug output
fixed close event on Date dialog