pbs: better handling of errors
A test showing a race condition when using Bistro_engine_lwt.Daemon
fixed bug found in 65bd2a06