Thank you for this beautiful thread but every time I run the record.sh it just blinks then closes? Can you please help me