Implement script die/exit