Add exception handler for package.use write operation