Implementation of stopping/resetting env in Nailgun

Added implementation of environment resetting

Change-Id: Ib2c8d2f7f570ba4293f7930cf4837a7ec09e222b