Fix: Add beforeExit listener in exit.js (#2106)
Fix: Add beforeExit listener in exit.js (#2106)

* Fix: Add beforeExit listener in exit.js

Fixes #2090

* Remove trailing space

Codeception/CodeceptJS,Codeception/CodeceptJS,Codeception/CodeceptJS