string deletes itself
added signal handler for linux/unix