"Unloading" handler function
Added teardown function