Added a shut_down function, this will be called when errors (not exceptions) occur, we then call the rollback on the redbean to undo the changes, issue #17,issue #16.