fix: server stop email retries on close