improved error handling and ending ajax import