Abstract implementation to shutdown funtionalities