Exit when an exception occurs while creating/dropping the database