Tested using Chrome.
Steps to reproduce:
1. Select backup or import process from settings block in course screen
2. Select cancel button
3. 'Cancel xxx' Popup appears with options 'Cancel' or 'Stay'.
4. Select 'Cancel' in popup - popup is hidden but page stays on same location.
5. Selecting cancel again from the process screen returns user back to course.