Again you can return a promise to signal when this closing process succeeds or fails.