handle invalid package exception