As I understand it will be run when you call 'exit 1' because of 'trap revert_back_to_centos EXIT'. You don't need to call it explicitly.