clear markers, handle error