reset the controller once the workspace is closed