Fixed core data concurrency errors
Added error handling for lack of connectivity