xinit: unexpected signal 2

Hi,
We are running a Qt application on embedded platform. We are running the application using script. Inside script we are using "startx appname". When we send interrupt (ctrl+c), it is throwing error "xinit: unexpected signal 2" . If we run the application properly using Xorg, it is exiting properly.