Added error handling to msfvenom when generating payloads

Added error handling to msfvenom when generating payloads