Add try{} catch for map initialization.