added exception handling while using gnuplot interface