trying to fix notify exit code

added close() to notification process.