Add prone middleware for exception handling