The script wasn't properly exiting.