added exit keyword at the end of the script.