Added preCleanup to browser objects based off of environment variable serenityci

Added preCleanup to browser objects based off of environment variable serenityci