Switched from intro as countdown as func name
Switched from error code to error const EXIT
Now the shutdown handler works globally in the script
Pushed animation code into animate function