log start/end process time and log memory usage when close event raise