Remove unused directories
Send exception by email when they happen in staging or production