The sysLib.rollback() system function reverses updates that were made to recoverable resources since the last commit. That reversal occurs in any EGL-generated application.
A rollback occurs automatically when a program ends because of an error condition.
Syntax
sysLib.rollback( )