Back vs close icon in Material Design

Some Material Design apps use the "close" icon instead of the more common "back" icon in the toolbar, for example:

enter image description here

(From https://stackoverflow.com/questions/27125340/material-close-button-in-toolbar-instead-of-back)

Are there any guidelines on this? Or is the best aproach to choose what feels most appropriate?