change sample file to better handle SIGINT and do sunxi clean up