Changed dieNicely function to die.  There is no dieNicely function in the script.