kernel cleanup function for ubuntu