remove finally for older php5 versions