Implement timeout for ajax calls, and always return status.