first basic implementation of ctryfinally