Improve tests exceptions handling

If test fails and then creation of diagnostic
snapshot using nailgun also fails, try to get
logs stored on master node via SSH.

Change-Id: I5456616cf7088210860a4d4a786531333070f3e5
Closes-bug: #1389287
Merge "Improve tests exceptions handling"