add signal handler for monitor