Some weird behavior was happening when usleep() was used before microtime(). This was leading to a 313 error of the service in rare occasions.