Added sighandler for unix