making sure the email notification script closes the connection pool once it's done