express on-finish fix