cleanup packages resources