exiting script if no target found