Why is so generic catch required here? It forces browsersim to be alive and most likely its state would be unknown with unpredictable  behavior.