Fix error handling in sample application