Added script for cleaning environmnet before rerun failed test

Change-Id: Ic332bf4f5913a7585320c184af6e5ebc1227d2f0