add signal handler to servers