Added new apt error handler