Added rescue mode

Fixes #1126