always flush mockFirebase after receiving a client message; wrap `send()` with try/catch