Exits so scripts run smoothly