fix test_restart_master_long with better error handling

http://172.19.49.85/view/arakoon-1.7/job/arakoon-1.7-system-tests-slow-SHAKY/207/testReport/arakoon_system_tests.server.shaky/test_restart_master_long/test_restart_master_long/