print error added pehash

When the command “pe pehash” is used, no feedback was provided when no
session was opened. Now it prints that there is no session opened when
used with args.