install signal handlers, kill app with same signal