Added try catch block into recording loop
Merge