stop continuation when layer close